package com.zhongyu.item.comsumer.controller;

import com.zhongyu.comm.vo.Result;
import com.zhongyu.item.comsumer.service.IndexService;
import com.zhongyu.item.comsumer.vo.FloorItemsVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class IndexController {

    @Resource
    private IndexService indexService;
    @RequestMapping("/api/p/index/queryFloorItems")
    public Result queryFloorItems(){
        List<FloorItemsVo> floorItemsVos = indexService.searchFloorItems();
        return Result.success(floorItemsVos);
    }

}
